<?php
/**
 * Created by : PhpStorm
 * User: DuFei
 * Date: 2020/7/30
 * Time: 16:03
 */

namespace app\models\response;



use app\models\BaseDto;

class RespRoleDetail extends BaseDto
{
   private $roleId;
   private $roleName;
    /**
     * @var array
     */
   private $menuIdList;

    /**
     * @return mixed
     */
    public function getRoleId()
    {
        return $this->roleId;
    }

    /**
     * @param mixed $roleId
     */
    public function setRoleId($roleId)
    {
        $this->roleId = $roleId;
    }

    /**
     * @return mixed
     */
    public function getRoleName()
    {
        return $this->roleName;
    }

    /**
     * @param mixed $roleName
     */
    public function setRoleName($roleName)
    {
        $this->roleName = $roleName;
    }

    /**
     * @return array
     */
    public function getMenuIdList()
    {
        return $this->menuIdList;
    }

    /**
     * @param array $menuIdList
     */
    public function setMenuIdList($menuIdList)
    {
        $this->menuIdList = $menuIdList;
    }


    /**
     * @return array|mixed|void
     */
    public function jsonSerialize()
    {
       return [
           "roleId"=>(string)$this->getRoleId(),
           "roleName"=>$this->getRoleName(),
           "menuIdList"=>$this->getMenuIdList()
       ];
    }


}
